package strategy;

import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Created by liuweijie on 2018/4/24.
 */
public class MyListTest {
    public static void main(String[] args){
        List<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6,8,8,8,2,1,2);
        Collections.sort(list, new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return -2;
            }
        });
        assert list.size()<0;
        System.out.println(list);

    }

}
